package org.dromara.germbank.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 联系我们信息收集表
 * 数据库表名：bus_application_contact
 */
@Data
@TableName("bus_application_contact")
public class BusApplicationContact implements Serializable {

    @TableField("id")
    @NotNull(message = "id不能为空")
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    @TableField("first_name")
    @NotBlank(message = "名不能为空")
    @Size(max = 50, message = "名长度不能超过50")
    @Length(max = 50, message = "名长度不能超过50")
    @Schema(description = "名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String first_name;

    @TableField("last_name")
    @NotBlank(message = "姓不能为空")
    @Size(max = 50, message = "姓长度不能超过50")
    @Length(max = 50, message = "姓长度不能超过50")
    @Schema(description = "姓", requiredMode = Schema.RequiredMode.REQUIRED)
    private String last_name;

    @TableField("email")
    @NotBlank(message = "主邮箱不能为空")
    @Size(max = 255, message = "主邮箱长度不能超过255")
    @Length(max = 255, message = "主邮箱长度不能超过255")
    @Schema(description = "主邮箱", requiredMode = Schema.RequiredMode.REQUIRED)
    private String email;

    @TableField("phone")
    @NotBlank(message = "电话不能为空")
    @Size(max = 30, message = "电话长度不能超过30")
    @Length(max = 30, message = "电话长度不能超过30")
    @Schema(description = "电话", requiredMode = Schema.RequiredMode.REQUIRED)
    private String phone;

    @TableField("interest_code")
    @NotNull(message = "兴趣角色不能为空")
    @Schema(description = "兴趣角色", requiredMode = Schema.RequiredMode.REQUIRED)
    private Object interest_code;

    @TableField("ivf_center")
    @Size(max = 200, message = "合作IVF中心长度不能超过200")
    @Length(max = 200, message = "合作IVF中心长度不能超过200")
    @Schema(description = "合作IVF中心")
    private String ivf_center;

    @TableField("help_note")
    @NotBlank(message = "需要提供的帮助不能为空")
    @Size(max = 65535, message = "需要提供的帮助长度超限")
    @Length(max = 65535, message = "需要提供的帮助长度超限")
    @Schema(description = "需要提供的帮助", requiredMode = Schema.RequiredMode.REQUIRED)
    private String help_note;

    @TableField("need_brochure")
    @Schema(description = "发送宣传手册 0/1")
    private Integer need_brochure;

    @TableField("recipient_email")
    @Size(max = 255, message = "收件人邮箱长度不能超过255")
    @Length(max = 255, message = "收件人邮箱长度不能超过255")
    @Schema(description = "收件人邮箱")
    private String recipient_email;

    @TableField("consent_risk")
    @NotNull(message = "同意风险提示 0/1 不能为空")
    @Schema(description = "同意风险提示 0/1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer consent_risk;

    @TableField("consent_law")
    @NotNull(message = "了解法规 0/1 不能为空")
    @Schema(description = "了解法规 0/1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer consent_law;

    @TableField("consent_truth")
    @NotNull(message = "承诺信息真实 0/1 不能为空")
    @Schema(description = "承诺信息真实 0/1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer consent_truth;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime create_time;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime update_time;

    @TableField("del_flag")
    @Schema(description = "删除标志: 0-存在, 1-删除")
    private Integer del_flag;
}
